<template>
  <div class="not-found-div">
    <img src="../assets/404.png" class="img" />
    <div class="not-found-font">
      <p style="font-size: 80px;color: #393939;">404</p>
      <p style="font-size:20px">抱歉!您所访问的页面不存在。</p>
      <el-button type="text" @click="home">返回首页</el-button>
      <el-button type="text" @click="back">返回上级页面</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods:{
    home(){
      this.$router.push({ name: "home" });
    },
    back(){
      this.$router.go(-2);
    }
  }
};
</script>

<style >

.not-found-div {
  width: 700px;
  margin: 100px auto;
  white-space: nowrap;
}

.img {
  width: 400px;
  float: left;
}

.not-found-font {
  float: right;
}
</style>